#!/sbin/msh

setenv USER user
setenv HOME /home
setenv SHELL /bin/bash

umask 0000
setenv XDG_RUNTIME_DIR /tmp/$USER
mkdir $XDG_RUNTIME_DIR 0700 $USER:$USER
mkdir /tmp/.X11-unix 01777
umask 0022

cd $HOME

groups control
setgid $USER
setuid $USER

setenv WESTON_TTY_FD 0
setenv WESTON_LAUNCHER_SOCK 3

waitfor /dev/dri/card0

exec /sbin/system/xorgvt
